package com.bidevalution.controller.api;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.bidevalution.business.service.BeSysParamsService;
import com.bidevalution.dao.entity.BeSysParams;
import com.bidevalution.dao.extend.BeMethodDefineExt;
import com.qtp.core.model.Response;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/beSysParams")
@Api(tags = "系统参数管理")
public class BeSysParamsController {
	@Autowired
	private BeSysParamsService beSysParamsService;

	@ApiOperation(value = "查询参数列表", notes = "查询参数列表", response = BeSysParams.class)
	@ApiImplicitParams({
			@ApiImplicitParam(name = "paramsType", value = "参数类型", required = true, dataType = "String", paramType = "query") })
	@GetMapping("/getBeSysParamsList")
	public Response<List<BeSysParams>> selectList(@RequestParam("paramsType") String paramsType) {
		return Response.ok(beSysParamsService.selectForList(paramsType));
	}
}
